package Twx0429;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args){
        List<User> users = new ArrayList<>();
        UserStorage storage = new UserStorage();
        List<User> loadedUsers = storage.loadUsers();

        storage.saveUsers(users);

        UI ui = new UI();
        ui.showLoginUI();

        for (User user : loadedUsers){
            System.out.println("Name:" + user.getName() + ",Password:" + user.getPwd() + ", Is Login: " + user.isIsLogin());
        }

    }
}
